{!capture name='left'!}
	<h1>{!$food.name!}</h1>
	<br/>
	<img src="/static/picture/food/{!$food.foodId!}?{!$food.updateTime!}"/>
	<p>{!$food.description!}</p>
	{!if $isMyself!}
		<br/>
		<a href="/food/{!$food.foodId!}/edit" class="edit">修改</a>
		<a href="/action/food/delete?foodId={!$food.foodId!}" onclick="return confirm('确实要删除做过的这道菜吗？');" class="delete">删除</a>
	{!/if!}
	<br/>
	<br/>
	<h2>评论</h2>
	<ul class="u list ul_people" id="remarkList">
	{!foreach from=$remarkList item=remark!}
	{!include file="part/remark.tpl"!}
	{!/foreach!}
	</ul>
	<form method="post" action="/action/remark/add" onsubmit="return $.action('remark.add',this);">
	<input type="hidden" name="recipeId" value="{!$food.recipeId!}"/>
	<input type="hidden" name="foodId" value="{!$food.foodId!}"/>
	<textarea style="width:400px;height:140px;" name="content"></textarea><br/>
	<input type="submit" value="发表"/>
	</form>
{!/capture!}
{!capture name='right'!}
	<img src="/static/picture/people/{!$actor.actorId!}" alt="{!$actor.actorName!}" align="left" class="people_img"/>
	<p class="pTitle">
		<a href="/people/{!$actor.actorId!}">{!$actor.nickname!}</a><br/>
		<span class="g1">{!$food.createTime|date_format:"%Y-%m-%d"!}上传</a>
	</p>
	<br/>
	<br/>
	<div class="g gb">想知道这道菜是怎样做的？</div>
	<h2 style="font-weight:normal">>> <a href="/recipe/{!$recipe.recipeId!}">{!$recipe.name!}</a></h2>
	
	{!if $foodList!}
	<h2>{!$actor.nickname!}做过的其他菜</h2>
	<ul class="u c">
	{!foreach from=$foodList item=food!}
		<li><a href="/food/{!$food.foodId!}">{!$food.name!}</a></li>
	{!/foreach!}
	</ul>
	{!/if!}
{!/capture!}
{!capture name='jsCode'!}
<script type="text/javascript" src="/js/action.js"></script>
{!/capture!}

{!include file='layouts/default.tpl'!}